package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Room;
import com.dao.RoomMapper;
import com.service.RoomService;
@Service
public class RoomServiceImpl implements RoomService {
	
	
	@Autowired
	private RoomMapper dao;

	public int deleteByPrimaryKey(Integer id) {
		return dao.deleteByPrimaryKey(id);
	}

	public int insert(Room record) {
		return dao.insert(record);
	}

	public int insertSelective(Room record) {
		return dao.insertSelective(record);
	}

	public Room selectByPrimaryKey(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Room record) {
		return dao.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Room record) {
		return dao.updateByPrimaryKey(record);
	}

	public List<Room> select(Map map) {
		return dao.select(map);
	}


	

	public List<Room> selectByuidState(Map map) {
		// TODO Auto-generated method stub
		return dao.selectByuidState(map);
	}

	public int updateByidstate(Map map) {
		// TODO Auto-generated method stub
		return dao.updateByidstate(map);
	}
	public List<Room> selectByProjectId(Integer pid) {
		return dao.selectByProjectId(pid);
	}

	public List<Room> selectByProjectIdToCh(Integer pid) {
		return dao.selectByProjectIdToCh(pid);
	}

	public void updateByPrimaryKeyToCh(Integer rid) {
		dao.updateByPrimaryKeyToCh(rid);
	}

	public void updateByPrimaryKeyToDel(Integer rid) {
		dao.updateByPrimaryKeyToDel(rid);
	}
	public int inserttotal(Map<String, Object> rooms) {
		return dao.inserttotal(rooms);

	}

	public void updateToOpen(Integer opid) {
		dao.updateToOpen(opid);

	}

	public void updateByPidKeyToCh(Integer pid) {
		dao.updateByPidKeyToCh(pid);
	}

	public void updateByPidToDel(Integer pid) {
		dao.updateByPidToDel(pid);
	}

}
